<template>
  <div>
    <simpleInfoCard title="告警消息">
      <template slot="contents">
        <el-row v-for="(item, index) in 3" :key="index" class="each">
          <el-col :span="12">
            <el-form-item label="设备:" prop="workNo">
              <el-input v-model.trim="model.name" placeholder="请输入姓名" />
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="隐藏测点:" prop="workNo">
              <el-input v-model.trim="model.name" placeholder="请输入姓名" />
            </el-form-item>
          </el-col>
          <i class="el-icon-delete" @click="delItem(index)" />
        </el-row>
        <div class="btnAddFItem" @click="addItem()"><i class="el-icon-circle-plus" />添加选项</div>
      </template>
    </simpleInfoCard>
  </div>
</template>

<script>
export default {
  components: {},
  mixins: [],
  props: {},
  data() {
    return {
    }
  },
  computed: {},
  watch: {},
  created() {},
  mounted() {},
  methods: {}
}
</script>

<style lang="scss" scoped>
.each{
  display: flex;
  align-items: center;
  justify-content: space-between;
  .el-icon-delete{
    cursor: pointer;
    line-height: 36px;
    color: red;
    font-size: 18px;
  }
}
.btnAddFItem{
  margin-top: 10px;
  text-align: center;
  cursor: pointer;
  .el-icon-circle-plus{
    margin-right: 6px;
    color: var(--subjectColor);
    font-size: 18px;
  }
}
</style>
